package com.joyintech.vo.noticegen;


import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class NoticeGenReq implements Serializable {
    /**
     * 消息提醒编号
     */
 private String   eventId;
    /**
     * 消息提醒大类
     */
    private String   messageCategory;
    /**
     * 消息提醒小类
     */
    private String   messageSubCategory	;


    /**待办任务批量推送列表**/
    private List<NoticeGenListReq> batchCreateMessageRenubderList = new ArrayList<>() ;


    /**消息提醒业务参数**/
    private Map<String, Object> paramMap = new HashMap<>();

    public NoticeGenReq(String eventId, String messageCategory, String messageSubCategory, List<NoticeGenListReq> batchCreateMessageRenubderList) {
        this.eventId = eventId;
        this.messageCategory = messageCategory;
        this.messageSubCategory = messageSubCategory;
        this.batchCreateMessageRenubderList = batchCreateMessageRenubderList;
    }

    /**
     * 放MAP参数
     * @param RequestLink
     */
    public void insertParamMap(String RequestLink){
        Map<String,Object> map =new HashMap<>();
        map.put("RequestLink",RequestLink);
        this.paramMap=map;
    }

    @Override
    public String toString() {
        return "NoticeGenReq{" +
                "eventId='" + eventId + '\'' +
                ", messageCategory='" + messageCategory + '\'' +
                ", messageSubCategory='" + messageSubCategory + '\'' +
                ", batchCreateMessageRenubderList=" + batchCreateMessageRenubderList +
                ", paramMap=" + paramMap +
                '}';
    }
}
